import instance from './btnregister'
// 用户信息
function toinfo () {
  return instance({
    url: '/info',
    headers: {
      token: window.localStorage.getItem('token')
    }
  })
}
// 退出
function btnlogout () {
  return instance({
    url: '/logout',
    headers: {
      token: window.localStorage.getItem('token')
    }
  })
}
export { toinfo, btnlogout }
